package com.baizhi.controller;

import com.baizhi.entity.OrderMaster;
import com.baizhi.feign.OrderFeign;
import com.baizhi.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.Map;

/**
 * @author yystart
 * @create 2019-10-04 22:55
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService service;

    @RequestMapping("/insert")
    public Map insert(OrderMaster master, HttpSession session){
        return service.insert(master,session);
    }

}
